export const APData = [
    {
        name: 'SLR01-wifi-08b',
        status: '连接',
        client: 9,
        concurrent: 4
    },
    {
        name: 'SLR01-18b',
        status: '未连接',
        client: 34,
        concurrent: 31
    }
];

export const APColumns = [
    {
        'title': 'AP名',
        'key': 'name',
        render: (h, params) => {
            return h('a', {
                domProps: {
                    href: `#/AP-detail/${params.row.id}`
                }
            }, params.row.name);
        }
    },
    {
        'title': '状态',
        'key': 'show',
        filters: [
            {
                label: '连接',
                value: '连接'
            },
            {
                label: '未连接',
                value: '未连接'
            }
        ],
        filterMultiple: false,
        filterMethod(value, row) {
            return row.status === value

        },
        render: (h, params) => {
            return h('Tag', {
                props:
                    { color: params.row.status === '连接' ? 'green' : 'red' }
            }, params.row.status);
        }
    },
    {
        'title': '接入用户',
        'key': 'client',
        sortable: true,
    },
    {
        'title': '并发终端',
        'key': 'concurrent',
        sortable: true,
    },
];
